home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11537 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  977 b 

  1. Path: Belgium.EU.net!news
  2. From: albert@sonytel.be (Albert Dorofiev)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ newbie asks for help
  5. Date: 15 Mar 1996 08:23:52 GMT
  6. Organization: EUnet Belgium, Leuven, Belgium
  7. Message-ID: <4ib9eo$bga@news.Belgium.EU.net>
  8. References: <31488AC8.1557@cco.caltech.edu>
  9. NNTP-Posting-Host: iris.sonytel.be
  10. X-Newsreader: knews 0.9.5
  11.  
  12. In article <31488AC8.1557@cco.caltech.edu>,
  13.     Xuhua Li <xuhua@cco.caltech.edu> writes:
  14.  
  15. >    cout << "starting\a\n";
  16.  
  17. add there 'flush':
  18.         cout << "starting\a\n" << flush;
  19. it will force immediate output to the screen, otherwise
  20. the stream just waits until the buffer is full or the
  21. program has ended
  22.  
  23. >Program #2
  24.  
  25. Sorry, man, this one works fine with me. I cannot see
  26. the problem, perhaps, because I am not in DOS.
  27.  
  28. -- 
  29. Albert Dorofeev                    albert@sonytel.be
  30.  
  31. Sony Telecom Europe                Tel. 02/ 724 1980
  32. St.Stevens Woluwestraat 55         Fax  02/ 726 2686
  33. B-1130 Brussel, Belgium, Europe
  34.  
  35.